﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AjaxServer : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string action = Server.HtmlEncode(Request.QueryString["action"]);
        Label lblDefault = new Label();
        switch (action)
        {
            default:
                
                lblDefault.Text = "Ajax Server Call";
                PlaceHolder1.Controls.Add(lblDefault);
                break;
            case "gettime":
                 lblDefault = new Label();
                lblDefault.Text = "Server Time: " + DateTime.Now.ToString();
                PlaceHolder1.Controls.Add(lblDefault);
               
                break;
        }
    }
}